package com.example.maruko_course_backend.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
public class PageDto<T> {
  private int totalSize;
  private List<T> data = new ArrayList<>();
  
  public PageDto(int totalSize) {
    this.totalSize = totalSize;
  }
}
